package org.brisling.oa.domain;


import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;
import javax.persistence.Transient;

import org.brisling.base.domain.impl.BaseDeptDomain;
import org.brisling.base.domain.inf.BaseDeptDomainInf;
import org.brisling.common.ConstSysParam;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 
 * 用户实体类
 * @author : jackson wang
 * @Date   : 2015年10月8日 下午10:01:07
 * @version: 1.0
 * 
 */

@Entity
@Table(name=ConstSysParam.MODULE_OA_DUTY_LIST)
public class OADutyList extends BaseDeptDomain implements BaseDeptDomainInf{
	
	
	
	/**
	 * 申请人
	 */
	protected Long apply_id;

	@Column(length=20)
	protected String apply_name;
	
	/**
	 * 申请科室
	 */
	protected Long apply_deptid;
	@Column(length=50)
	protected String apply_deptname;
	
	//事项
	private String item;

	//时间
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	private Date start_time;
	
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	private Date end_time;

	//备注
	private String duty_comment;

	@Transient
	private String title;
	
	//会议开始时间
	@Transient
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	private Date start;
	
	//会议结束时间
	@Transient
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	private Date end;
	
	public Long getApply_id() {
		return apply_id;
	}

	public void setApply_id(Long apply_id) {
		this.apply_id = apply_id;
	}

	public String getApply_name() {
		return apply_name;
	}

	public void setApply_name(String apply_name) {
		this.apply_name = apply_name;
	}

	public Long getApply_deptid() {
		return apply_deptid;
	}

	public void setApply_deptid(Long apply_deptid) {
		this.apply_deptid = apply_deptid;
	}

	public String getApply_deptname() {
		return apply_deptname;
	}

	public void setApply_deptname(String apply_deptname) {
		this.apply_deptname = apply_deptname;
	}
	
	
	public String getItem() {
		return item;
	}

	public void setItem(String item) {
		this.item = item;
	}
	
	public Date getStart_time() {
		return start_time;
	}

	public void setStart_time(Date start_time) {
		this.start_time = start_time;
	}

	public Date getEnd_time() {
		return end_time;
	}

	public void setEnd_time(Date end_time) {
		this.end_time = end_time;
	}

	public String getDuty_comment() {
		return duty_comment;
	}

	public void setDuty_comment(String duty_comment) {
		this.duty_comment = duty_comment;
	}
	
	public String getTitle() {
		return this.item;
	}	

	public Date getStart() {
		return this.start_time;
	}	

	public Date getEnd() {
		return this.end_time;
	}
}